<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>子模板</title>
</head>

<body>
  <!-- 子模板引用 -->
  <!-- {{include './layout/title.html'}} -->
  <!-- 传入过来的数据一定是一个对象 -->
  {{include './layout/title.html' titleObj}}
  <div>页面内容</div>
  <%include('./layout/btn.html',titleObj)%>
  <footer>底部声明</footer>
</body>

</html>